package com.daoeping.service.impl;

import com.daoeping.dao.Bzn_questionfavoriteDAO;
import com.daoeping.data.Bzn_question;
import com.daoeping.data.Bzn_questionfavgroup;
import com.daoeping.data.Bzn_questionfavorite;
import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.Bzn_questionfavoriteService;

public class Bzn_questionfavoriteServiceImpl implements
		Bzn_questionfavoriteService {
	private Bzn_questionfavoriteDAO bzn_questionfavoriteDAO;
	
	public Bzn_questionfavoriteDAO getBzn_questionfavoriteDAO() {
		return bzn_questionfavoriteDAO;
	}

	public void setBzn_questionfavoriteDAO(
			Bzn_questionfavoriteDAO bzn_questionfavoriteDAO) {
		this.bzn_questionfavoriteDAO = bzn_questionfavoriteDAO;
	}

	@Override
	public boolean addBzn_questionfavorite(
			Bzn_questionfavorite bzn_questionfavorite) {
		return bzn_questionfavoriteDAO.insertData(bzn_questionfavorite);
	}

	@Override
	public Bzn_questionfavorite findBzn_questionfavoriteById(
			Bzn_questionfavorite bzn_questionfavorite ) {
		return bzn_questionfavoriteDAO.findBzn_questionfavoriteById(bzn_questionfavorite  );
	}

	@Override
	public JsonData findAllBzn_questionfavoriteByPage(Page page,
			TableData tableData, Bzn_questionfavorite bzn_questionfavorite) {
			return bzn_questionfavoriteDAO.findAllBzn_questionfavoriteByPage(page, tableData, bzn_questionfavorite);
	}

	@Override
	public boolean editBzn_questionfavorite(JsonData jsonData) {
		return bzn_questionfavoriteDAO.editBzn_questionfavorite(jsonData);
	}

	@Override
	public boolean delBzn_questionfavoriteByFavGroupId(
			Bzn_questionfavgroup bzn_questionfavgroup) {
		return bzn_questionfavoriteDAO.delBzn_questionfavoriteByFavGroupId(bzn_questionfavgroup);
	}

	@Override
	public boolean delBzn_questionfavorite(JsonData jsonData) {
		return bzn_questionfavoriteDAO.delBzn_questionfavorite(jsonData);
	}

	@Override
	public boolean delBzn_questionfavoriteByQuestionId(Bzn_question bzn_question) {
		return bzn_questionfavoriteDAO.delBzn_questionfavoriteByQuestionId(bzn_question);
	}

	

	
}
